//package org.example.dynamic;
//
//import org.apache.ibatis.io.Resources;
//import org.apache.ibatis.session.SqlSession;
//import org.apache.ibatis.session.SqlSessionFactory;
//import org.apache.ibatis.session.SqlSessionFactoryBuilder;
//import org.example.bean.Student;
//import org.example.mapper.StudentMapper;
//import org.junit.Test;
//
//import java.io.IOException;
//import java.io.InputStream;
//import java.util.ArrayList;
//import java.util.List;
//
//public class Test01 {
//    @Test
//    public void selectByIds()throws IOException{
//        InputStream is = Resources.getResourceAsStream("MyBatisConfig.xml");
//        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);
//        SqlSession sqlSession = sqlSessionFactory.openSession(true);
//
//        StudentMapper mapper = sqlSession.getMapper(StudentMapper.class);
//
//        List<Integer> List = new ArrayList<>();
//        List.add(1);
//        List.add(2);
//        List.add(3);
//
//        List<Student> stuendtList = mapper.selectById(List);
//
//        stuendtList.forEach(System.out::println);
//    }
//
//
//
//}
